<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php 
include_once 'admin/clsEssentials.php';
$objEssential = new clsEssentials();
$arrFeedBack = array();
$arrFeedBack = $objEssential->getFeedBack();
$divCount = count($arrFeedBack);
$height = ($divCount * 300);
$addstyle = "height:".$height."px"; 
$contactNumber = $objEssential->currentContactNumber();
$contactEmail = $objEssential->currentEmailAddress();
?>
<?php include 'common-files/user-head.php'; ?>
<?php include 'common-files/user-head.php'; ?>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="gooeymenu.js"></script>
<link rel="stylesheet" type="text/css" href="gooeymenu.css" />
<body>
 <div id="outlineborder">
 <div class="main">
   <?php include 'common-files/user-header.php'; ?>
     <div class="rptcontenttop">
	   <div class="rptcontenttopleft">
	     <div class="callus" onclick="javascript:window.location='http://www.ammyy.com/AMMYY_Admin.exe';" style="cursor: pointer;">
		 <!--Call US-->
		 <br />
		 <div class="links"></div>
		 <br />
		<!--Ends -->
		  <!--<div class="help">Know more</div>-->
		   
		 </div>
		 <div class="reportus" >
		 
		<!-- <div class="linkstop"><a><div class="linkstopimg"><img src="images/ammyy_logo_small.gif" alt="" /></div><div id="linkstoptxt">Ammy</div></a></div>-->
		
		 <div class="linkstop"><div class="linkstopimg"></div>
		 </div>
		  <div class="links" style="font-size: 14px;margin-top: -10px;margin-left:16px;"><?php echo $contactNumber; ?><br />
		  <span id="linkstoptxt" style="font-size: 14px;margin-left: -5px;margin-top: -5px; color:#000000;">Our email:&nbsp;</span><a href="mailto:<?php echo $contactEmail; ?>" class=""><?php echo $contactEmail; ?></a>
		  </div>
		  <!--<div class="help">Know more</div>-->
		 </div>
		 <div class="remotsession">
		 
		 <div class="linkstop"><a href="report_problem.php"><div class="linkstopimg"></div></a></div>
		 
		  <!--<div class="help">Know more</div>-->
		 </div>
		 <div class="skypeus">
		 <div class="linkstop"><div class="linkstopimg"></div>
		 <div id="linkstoptxt"></div></div>
		 <div class="linksskype"><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:vFIX-onlinetechsupport?add"></a></div>
		  <!--<div class="help">Know more</div>-->
		  
		  
		  <!-- GTALK -->
		  <div style="height:10px;">&nbsp;</div>
		 <!-- <iframe src="http://www.google.com/talk/service/badge/Show?tk=z01q6amlqjas0epc6d9hpgc2nt8cjh43q9ilu7u8uf2j2k7i8gg3dvgdm7kotdnehv3o43isb2pfkntsb6h6qj6pms413m7qeb3bb28krh10a4pl4so3ijpatlpcmusirjgn40or9ukeosc7o0pafv3u2eqhr1vpkkevu45ca69ih2dt2ma7pjt07m9c8cu7dl4&amp;w=200&amp;h=60" frameborder="0" allowtransparency="true" width="200" height="60"></iframe>-->
		  <!-- ENDS -->
		  
		 </div>
	   </div>
	   <div class="rptcontenttopright">
	      <div id="maincontent">
		   <div id="contenthead">
		    Report a Problem
		   </div>
		   <div id="linehead">
		   </div>
		   <div class="contenttext">
		   <div class="coutline">
		  <form action="#" method="post" >
				   
		<label class="mcontact">First Name</label>
			<input name="txtFirstName" id="txtFirstName" type="text" value="" class="mcontact" style="margin-left:65px;" />
		<label class="mcontact">Last Name</label>
			<input name="txtLastName" id="txtLastName" type="text" value=""  class="mcontact"/><br />
		<label class="mcontact">Phone No</label>
			<input name="txtPhoneNo" id="txtPhoneNo" type="text" value="" class="mcontact" size="41" style="margin-left:72px;"/><br />
		<label class="mcontact">Email</label>
			<input name="txtEmailAddress" id="txtEmailAddress" type="text" value="" class="mcontact" size="41" style="margin-left:94px;"/><br />
		<label class="mcontact">Best Time To Call</label>
			<input name="txtTimeFrom" id="txtTimeFrom" type="text" value="" class="mcontact" style="margin-left:20px;"/>
		<label class="mcontact">To</label>
			<input name="txtTimeTo" id="txtTimeTo" type="text" value="" class="mcontact" style="margin-left:66px;" /><br />
		<textarea name="txtAreaComments" id="txtAreaComments" cols="50" rows="5" style="margin-left:145px; margin-top:20px; "></textarea>
		<input style="cursor: pointer;" name="Submit" type="button" value="Submit" id="btn" class="msubmit" onclick="sendContactUs();"  />
	    <input name="Reset" type="button" value="Reset" class="mreset"/>
		
		
       		 </form>
			 </div>
		   </div>
		  </div>
		 
	   </div>
</div>
 <div class="bottomlinks">
  <?php include 'common-files/bottom-links.php'; ?>
</div>
<div class="footer">
   <?php include 'common-files/footer.php'; ?>
</div>
</div>
</div>


<script type="text/javascript" language="javascript">

function sendContactUs()
{
	var fname = $("#txtFirstName").val();
	var lname = $("#txtLastName").val();
	var phone = $("#txtPhoneNo").val();
	var email = $("#txtEmailAddress").val();
	var comments = $("#txtAreaComments").val();
	var timeFrom= $("#txtTimeFrom").val();
	var timeTo= $("#txtTimeTo").val();

	
	var strErrMsg = "";
	
	if(fname.length==0)
	{
		strErrMsg += "Please enter your first name.";
		strErrMsg +="\n";
	}
	
	if(email.length==0)
	{
		strErrMsg +="Please enter either email address.";
		strErrMsg +="\n";
	}
	
	if(phone.length==0)
	{
		strErrMsg +="Please enter phone number.";
		strErrMsg +="\n";
	}
	
	if(comments.length==0)
	{
		strErrMsg +="Please enter your comment.";
		strErrMsg +"\n";
	}
	
	if(strErrMsg.length>0)
	{
		alert(strErrMsg);
		return false;
	}
	else
	{
		$.post("contact-save.php",{action:"save",fname:fname,lname:lname,phone:phone,email:email,comments:comments,timeFrom:timeFrom,timeTo:timeTo},function(data){
			
			if(data==1)
			{
				alert("Your Request has been sent to the our representative. We will contact you soon. Thank you for contacting us.");
			}
			else
			{
				alert("We are unable to send your request at this moment. Please try again later.");
			}
			
		},"text");
	}
	
}

</script>


</body>
</html>